using System;
using System.Collections.Generic;
using System.IO;
using com.echonest.api.v4;
using jENIKVMApi;

namespace Examples
{


    public class SimlarArtists
    {

        public static string API_KEY = File.ReadAllText("developer_key.txt");


        public static void Run()
        {
            EchoNestAPI echoNest = new EchoNestAPI(API_KEY);
            IList<Artist> artists = echoNest.SearchArtists("Weezer");

            if (artists.Count > 0)
            {
                Artist weezer = artists[0];
                Console.WriteLine("Similar artists for " + weezer.getName());
                foreach (Artist simArtist in weezer.GetSimilar(10))
                {
                    Console.WriteLine("   " + simArtist.getName());
                }
            }
        }
    }
}